function getCK(name){
	search=name + "=";
	offset=d.cookie.indexOf(search);
	if(offset!=-1){
	offset+=search.length;
	end=d.cookie.indexOf(";",offset);
	if(end==-1)end=d.cookie.length;
	return unescape(d.cookie.substring(offset,end));
	}else return "";
}
function setCK(name,value,ex){
	exdate=new Date();
	if(ex==null){
		exdate.setDate(exdate.getDate()+365);
	}else{
		exdate.setDate(exdate.getDate()+ex);
	}
	d.cookie=name+"="+value+";path=/;expires="+exdate.toGMTString();
}